import java.util.Comparator;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User:
 * Date: 2024-06-21
 * Time: 11:31
 */
public class NameComparator implements Comparator <Student> {

    @Override
    public int compare(Student o1, Student o2) {
        return o1.name.compareTo(o2.name);
    }
}
